<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="container">
        <h2>题目: 测试题目</h2>
        <button id="submit">提交答案</button>
    </div>
    <script src="./utils/axios.min.js"></script>
    <script>
        const submit = document.querySelector('#submit');
        submit.addEventListener('click', function(){
            axios.post('/submit').then(({data}) => {
                if(data.code === 1){
                    alert('提交成功');
                }
            })
        })
    </script>
</body>
</html>